<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<style>
    .getDrug {
        color: red;
    }

    .bo {
        border: black solid 1px;
        background-color: aqua;
    }

    .disease {
        border: black solid 1px;
        background-color: aqua;
        height: 700px;
    }

    .jbr {
        height: 36px;
        width: 335px;
        margin-left: 20px;
    }

    #info_table td {
        margin-left: 5px;
    }
</style>


<script>


</script>

<!--导航--->
<nav class="navbar navbar-default">
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <li class="active">
                <a href="#">诊断系统 <span class="sr-only"></span></a>
            </li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                   aria-expanded="false">添加记录 <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="/addPrescription">方剂录入</a></li>
                    <li><a href="#">常见疾病录入</a></li>
                    <li><a href="#">中药录入</a></li>
                    <li><a href="#">查看录入方剂</a></li>

                    <li role="separator" class="divider"></li>
                    <li><a href="#">Separated link</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">One more separated link</a></li>
                </ul>
            </li>
            <li><a href="#">查看书籍</a></li>
            <li><a href="#">开方记录</a></li>
            <li><a href="#">阅读</a></li>
        </ul>
    </div>

</nav>

<!--内容--->
<div class="container-fluid" style="background-color: aqua;margin-top: -21px">
    <div class="row">
        <!-- 左边 -->

        <div class="col-md-6 bo">

            <div class="row" style="margin-bottom: 10px;margin-top: 10px">
                <table id="info_table" class=".table-bordered ">
                    <tr>
                        <td>姓名</td>
                        <td><input name="Pname" style="width: 100px"></td>

                        <td>性别</td>
                        <td><input name="Pname" style="width: 50px"></td>

                        <td>年龄</td>
                        <td><input name="Pname" style="width: 40px"></td>

                        <td>电话</td>
                        <td><input name="Pname" style="width: 150px"></td>
                    </tr>
                    <tr style="margin-top: 1px">
                        <td>身高</td>
                        <td><input name="Pname" style="width: 150px" placeholder="cm"></td>

                        <td>体重</td>
                        <td><input name="Pname" style="width: 50px" placeholder="kg"></td>

                        <td>住址</td>
                        <td><input name="Pname" style="width: 250px"></td>

                         <td>职业</td>
                        <td><input name="Pname" style="width: 250px"></td>

                    </tr>

                </table>
            </div>


            <div class="row">
                <!-- <input> -->
                <input type="text" class="jbr" size=50 id="keyword" name="keyword" onkeyup="getMoreContents()"
                       onblur="keywordblur()"
                       onfocus="getMoreContents()" lay-verify="required">
                <div id="popDiv" style="position: absolute">
                    <table id="content_table" bgcolor="#FFFAFA" border="0"
                           cellspacing="0" cellpadding="0">
                        <tbody id="content_table_body">
                        </tbody>
                    </table>
                </div>
                <select name="cars" id="type">
                    <option value="感冒">感冒</option>
                    <option value="咳嗽">咳嗽</option>
                    <option value="哮喘">哮喘</option>
                    <option value="肺痛">肺痛</option>
                </select>
                <!-- <div class="tag-container">
                            </div> -->
                <input type="button" class="btn btn-primary" id="send_disease" value="查询">
            </div>

            <div style="height: 100px;width: 100%" class="bo tag-container">

            </div>

            <div>

                <div class="col-md-6 disease">
                    <div id="describe">
                    </div>
                </div>

                <div class="col-md-6 disease">
                    <div id="drug">
                    </div>
                </div>

            </div>
        </div>
        <!-- 右边 -->
        <div class="col-md-6 ">
            <div class="row">
                <div class="col-md-8">
                    <!-- 特殊症状 -->
                    <div style="font-size: 30px">
                        <span style="background-color: yellow ; font-size: 25px">常见疾病</span>
                        <select style="width: 200px;font-size: 20px" id="cjjb">
                            <option value="volvo">--</option>
                            <option value="saab">咳嗽</option>
                            <option value="opel">发热</option>
                            <option value="audi">头痛</option>
                        </select>
                    </div>

                    <!---常见疾病分类------>
                    <div style="font-size: 30px">
                        <span style="background-color: yellow ; font-size: 25px">&nbsp症&nbsp&nbsp&nbsp&nbsp&nbsp状&nbsp</span>
                        <select style="width: 200px;font-size: 20px">
                            <option value="volvo">--</option>
                            <option value="saab">风寒咳嗽</option>
                            <option value="opel">风热咳嗽</option>
                            <option value="audi">痰热咳嗽</option>
                        </select>
                    </div>

                    <!---常见疾病类型详细信息------>
                    <div style="width: 100%;height: 140px; border:black 1px solid; font-size: 15px;overflow:auto ">
                        【主症】咳嗽频作、声重，咽痒，痰白清稀，鼻塞流涕，恶寒无汗，发热头痛，全身酸痛，舌苔薄白，脉浮紧或指纹浮红。<br/>
                        【治法】疏风散寒，宣肺止咳。<br/>
                        【方剂】金沸草散加减。常用金沸草顺气止咳，前胡、荆芥解散风寒，细辛温经发散，半夏燥湿化痰，茯苓利水除痰。<br/>
                    </div>


                    <div>
                        <!--
                        <span class="lead" style="background-color: yellow;">方剂:金沸草散</span>---->
                        <!--方剂-->
                        <span class="lead" style="background-color: yellow;">方剂</span>
                        <select style="width: 200px;font-size: 20px">
                            <option value="volvo">金沸草散</option>
                            <option value="volvo">经验方</option>
                        </select>

                        <div style="width: 100%;height: 50px; border:black 1px solid; font-size: 15px;overflow:auto ">
                            <P>前胡三两(90克)、荆芥四两(120克)、姜半夏一两(30克)、赤芍二两(60克)、细辛一两(30克)、炙甘草一两(30克)、旋覆花三两(90克)。</P>
                        </div>
                    </div>

                    <button type="button" class="btn btn-primary" style="margin-top: 10px;">添加处方</button>


                </div>


                <!-- 中药 -->
                <div class="col-md-4">
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <span style="background-color: yellow ; font-size: 20px">&nbsp中&nbsp&nbsp&nbsp药&nbsp</span>
                                </td>
                                <td>
                                    <select style="width: 200px;font-size: 20px">
                                        <option value="volvo">麻黄</option>
                                        <option value="saab">人参</option>
                                        <option value="opel">甘草</option>
                                        <option value="audi">金银花</option>
                                    </select>
                                </td>
                            </tr>

                            <!----
                            <tr>
                                <td><span
                                        style="background-color: yellow ; font-size: 20px">&nbsp方&nbsp&nbsp&nbsp剂&nbsp</span>
                                </td>
                                <td><select style="width: 200px;font-size: 20px">
                                    <option value="volvo">麻黄</option>
                                    <option value="saab">人参</option>
                                    <option value="opel">甘草</option>
                                    <option value="audi">金银花</option>
                                </select></td>
                            </tr>
                            --->

                            <tr style="font-size: 20px">
                                <td style="background-color: yellow">
                                    &nbsp剂&nbsp&nbsp&nbsp量
                                </td>
                                <td>
                                    <input type="text" name="jl" style="width: 30px" value="5"> g
                                </td>

                            </tr>

                            <tr>
                                <td><span style="background-color: yellow">参考图像</span></td>
                                <td style="border: black 1px solid">
                                    <img src="http://127.0.0.1:5000/static/img/img.png" alt="麻黄" class="img-rounded"
                                         style="width: 200px;height: 200px">
                                </td>
                            </tr>


                            <tr style="height: 10px;margin-top: 10px">
                                <td></td>
                                <td>
                                    <button type="button" class="btn btn-primary">添加处方
                                    </button>
                                </td>
                            </tr>
                        </table>

                    </div>

                </div>

            </div>

            <HR style="background-color: black">

            <!--处方区-->
            <div class="row">
                <div style="height: 100%">
                    <span style="font-size: 20px; margin-left: 10px;background-color: yellow">处方区</span>
                    <textarea value="qwe" class="form-control" rows="3" id="cf"
                              style="width: 98%;height: 450px; font-size: 15px;margin-left: 5px">

                    </textarea>

                    <button type="button" class="btn btn-primary" style="width: 100px;height: 50px;margin-left: 10px">
                        验证
                    </button>
                </div>
            </div>


        </div>
    </div>


</div>


<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="search.js"></script>
<script src="tags-input.js"></script>
</body>
</html>


<script>
    $('#cjjb').on("change", function () {
        console.log(this.value);
        console.log($(this).find(':selected').val());
    })


    $('#testSelect option:selected').text();
</script>


